package com.osi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.osi.bean.Student;
import com.osi.response.R;

import java.util.List;

/**
 * @author lixin
 * @date 2021/2/8 16:11
 */
public interface StudentService extends IService<Student> {


    /**
     * 查询学生用户
     * @param student
     * @return
     */
    List<Student> queryList(Student student);

    /**
     *
     * @param username
     * @param password
     * @return
     */
    Student login(String username, String password);

    /**
     *
     * @param student
     * @return
     */
    R register(Student student);


    Student getOnlineStudent();

    Student selectStudentByUsername(String username);
}
